<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:x="http://java.sun.com/jsf/composite/movie"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <ui:composition  template="/template.xhtml">
        <ui:define name="content">

            <h:form>
                <h:dataTable styleClass="overflow-table"  rendered="#{accessLogController.items!=null and accessLogController.items.rowCount gt 0}" value="#{accessLogController.items}" var="item" columnClasses="textalignright, textalignleft, textaligncenter, textalignleft,textaligncenter" rowClasses="odd,even" >
                    <c:set var="index" value=" #{accessLogController.items.rowIndex + 1}" />

                    <h:column>
                        <f:facet name="header">#</f:facet>
                        #{index}
                    </h:column>

                    <h:column>
                        <f:facet name="header">
                            <h:outputLabel value="Hit Date" />
                        </f:facet>
                        <h:outputText value="#{item.hitDate}" escape="false"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputLabel value="Hit Time" />
                        </f:facet>
                        <h:outputText value="#{item.hitTime}" escape="false"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputLabel value="Client Addr" />
                        </f:facet>
                        <h:outputText value="#{item.clientAddr}" escape="false"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputLabel value="User Agent" />
                        </f:facet>
                        <h:outputText value="#{item.userAgent}" escape="false"/>
                    </h:column>

                  

                </h:dataTable>
            </h:form>
        </ui:define>
    </ui:composition>
</html>

